%% Doc: minitoc.pdf
\LoadPackageAfterPackage{minitoc}{hyperref}
% Packages that MUST be loaded before minitoc !
% hyperref, caption, sectsty, varsects, fncychap, hangcaption, quotchap, 
% romannum, sfheaders, alnumsec, captcont


% put this AFTER loading of hyperref!
\ExecuteAfterPackage{hyperref}{
\IfPackageLoaded{minitoc}{
%%Schriften fuer Minitoc (Inhaltsverzeichnis vor jedem Kapitel)
\IfElseChapterDefined{% 
	\setlength{\mtcindent}{0em} % default: 24pt
	\setcounter{minitocdepth}{2}
	\setlength{\mtcskipamount}{\bigskipamount}
	\mtcsettitlefont{minitoc}{\normalsize\SectionFontStyle}
	\mtcsetfont{minitoc}{*}{\small\SectionFontStyle} %\color{textcolor}
	\mtcsetfont{minitoc}{section}{\small\SectionFontStyle}
	\mtcsetfont{minitoc}{subsection}{\small\SectionFontStyle}
	\mtcsetfont{minitoc}{subsubsection}{\small\SectionFontStyle}
}{
	\setlength{\stcindent}{0pt} %default
	\setcounter{secttocdepth}{2} %default
	\mtcsettitlefont{secttoc}{\SectionFontStyle}
	\mtcsetfont{secttoc}{*}{\small\SectionFontStyle}%
	\mtcsetfont{secttoc}{subsection}{\small\SectionFontStyle}
	\mtcsetfont{secttoc}{subsubsection}{\small\SectionFontStyle}
}
} % end : \IfPackageLoaded{minitoc}
} % end : \ExecuteAfterPackage{hyperref}